require.config({
    paths:{
        'selector':'selector',
        'test':'test',
    }
});
 
require(['selector','test'], function(test,fn) {
    var el = document.getElementById('wrapper');
    test(el);
    fn()
});